<?php echo $this->validation->error_string; ?>
<?php echo form_open($this->curl .'/createComment', 'id="create_form"')?>

<?php echo form_fieldset(T_('Article')); ?>
	
	<table class="nostyle forma" width="100%" border="0" cellpadding="3" cellspacing="0">
	<tr>
		<th><?php $this->load->view('_elements/obligatory.php'); ?><?php echo $this->comment_model->fields['author']?></th>
		<td><div class="input_300"><?php echo form_input('author', $this->validation->author, 'class="input-text"')?></div></td>
	</tr>
	<tr>
		<th><?php $this->load->view('_elements/obligatory.php'); ?><?php echo $this->comment_model->fields['email']?></th>
		<td><div class="input_300"><?php echo form_input('email', $this->validation->email, 'class="input-text"')?></div></td>
	</tr>
	<tr>
		<th><?php $this->load->view('_elements/obligatory.php'); ?><?php echo $this->comment_model->fields['status']?></th>
		<td><div class="input_300"><?php echo form_dropdown('status', $this->comment_model->status, array($this->validation->status))?></div></td>
	</tr>	
	<tr>
		<th><?php echo $this->comment_model->fields['under_post']?></th>
		<td><?php echo form_input('under_post', $this->validation->under_post, 'class="input-text"')?></td>
	</tr>
	<tr>
		<th><?php $this->load->view('_elements/obligatory.php'); ?><?php echo $this->comment_model->fields['text']?></th>
		<td><textarea name="text" id="text"><?php echo $this->validation->text ?></textarea></td>
	</tr>
	</table>
	
<?php echo form_fieldset_close(); ?>

	<table class="nostyle forma" width="100%" border="0" cellpadding="3" cellspacing="0">
	<tr>
		<th style="width: 132px;"></th>
		<td>
			<input name="edit" type="submit" class="btn btn_save" id="submit" value="<?php echo T_('Submit')?>" />
			<input name="reset"  type="reset"  class="btn btn_clear" id="reset" value="<?php echo T_('Reset')?>" onclick="$('#create_form input[type=text]').val('');" />		
		</td>
	</tr>
	</table>

<?php echo form_close()?>